<script>
import MyAside from "@/components/myAside.vue";
import MyHeader from "@/components/myHeader.vue";
export default {
  name:"myIndex",
  components: { MyAside,MyHeader},
  data(){
    return{

      aside_length:"200px",
      icon:'el-icon-s-fold'
    }
  },
  methods:{
    loadPost(){
      this.$axios.post(this.$httpUrl+'/user/listPageC1',{
        // 传给后端从参数，下面只是一个例子
        pageSize:this.pageSize,
        pageNum:this.pageNum,
        param:{
          name:this.name,
          sex:this.sex,
          roleId:'1'
        }
      }).then(res=>res.data).then(res=>{

      })
    }
  }



}
</script>

<template>
  <el-container style="border: 1px solid #eee">
    <el-aside :width="aside_length" style=" height:100vh;background-color: rgb(238, 241, 246);margin-left: -3px">
      <MyAside ></MyAside>
    </el-aside>
    <el-container style="height: 100%;">
      <el-header style="text-align: right; font-size: 12px;height: 100%;border-bottom: rgba(168,168,168,0.3) 1px solid;">
        <Header :icon="icon"></Header>
      </el-header>
      <el-main>
<!--        此处编写代码-->
<!--        前后端交互  ：案例-->
        <el-button type="success" style="margin-left: 5px" @click="loadPost">查询</el-button>
<!--   这个按钮里面@click里写了一个loadPost 在上面<script> 里面的methods添加     -->
      </el-main>

    </el-container>
  </el-container>

</template>

<style scoped lang="less">

</style>